package demo.controller;

import java.time.LocalDateTime;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumesAndProducesController {
	
	

	
	@RequestMapping(value="/contentTypeCheck",consumes="application/json")
	public String contentTypeCheck(){		
		return "only for content-type=application/json "+LocalDateTime.now();
	}
	
	@RequestMapping(value="/acceptCheck",produces="application/json")
	public String acceptCheck(){		
		return "only for Accept=application/json "+LocalDateTime.now();
	}
	
	
	
}